<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="commons/css/button.css" />
		<link rel="stylesheet" type="text/css" href="commons/css/form.css" />
		<script type="text/javascript" src="commons/js/form.js"></script>
		<script type="text/javascript" src="commons/jquery/jquery.js"></script>
		<style>
			.error{
				box-shadow: 0px 0px 5px #F00;
				background-color: #FFFEEF;
			}
		</style>
		
		<script type="text/javascript">
			$(document).ready(function(){				　　
				$('#od').change(function(){
					getemp();
				});
			});
		</script>
		
	</head>
	<body>
		<div class="container" align="center">
			<div class='companyWap'>
				<table class='details'>
					<tr>
						<td>  
							新增人员调动信息：   
						</td>
					</tr>
				</table>
				<form action="tran_add.action" method="post" onsubmit="return validate();">
					<s:token></s:token>
					<table class='details'>
						<tr>
							<td>调动前基本信息</td>
						</tr>
						<tr>
							<td class='n'>所在部门：</td>
							<td>
								<select name="tran.before_department" id="od">
									<option value="">=请选择=</option>
									<c:forEach var="item" items="${departs}">
										<option value="${item.name}">${item.name}</option>
									</c:forEach>
								</select>
							</td>
							</tr>
							<tr>
							<td class='n'>员工姓名：</td>
							<td>
								<select name="tran.employee.id" id="emp">
									<option>=请选择=</option>
								</select>
							</td>
							</tr>
							<tr>
							<td class='n'>原工作：</td>
							<td>
								<input type="text" name="tran.before_job"/>
							</td>
						</tr>
						<tr>
							<td >
								调动后信息
							</td>
						<tr>
							<td class='n'>调往部门：</td>
							<td>
								<select name="tran.after_department">
									<option value="">=请选择=</option>
									<c:forEach var="item" items="${departs}">
										<option value="${item.name}">${item.name}</option>
									</c:forEach>
								</select>
							</td>
							</tr>
							<tr>
							<td class='n'>调整后工作：</td>
							<td>
								<input type="text" name="tran.after_job"/>
							</td>
							</tr>
							<tr><td>&nbsp;</td></tr>
							<tr>
							<td class='n'>调整负责人：</td>
							<td>
								<input type="text" name="tran.boss"/>
							</td>
						</tr>
						<tr>
							<td class='n'>调整原因：</td>
							<td >
								<input type="text" name="tran.reason"/>
							</td>
							</tr>
							<tr>
							<td class='n'>调整时间：</td>
							<td ><input type="text" name="tran.time"/></td>
						</tr>						
					</table>					
					<div style="text-align: center; margin-top: 10px;">
						<button class="light" type="submit"> 提 交 </button>
					</div>
				</form>	
			</div>
		</div>
	</body>
</html>
